<template>
  <div class="test">
      <button @click="demo1">点击获取数据</button>
  </div>
</template>

<script>
  // import axios from 'axios'
  import mAjax from '@/api/mAjax'
  export default {
    name:'Test',
    methods:{
       demo1(){
      this.$store.dispatch('getRollPlayList')
      }
    }
  }
</script>

<style lang="less" scoped>
  .test {
      width: 500px;
      height:300px;
      background:skyblue;
      button{
        width:200px;
        height:100px;
      }
  }
</style>